package com.aiit.pojo;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import lombok.ToString;

import java.io.Serializable;
import java.util.List;

/**
 * Created with IntelliJ IDEA.
 *
 * @Author: LuTao
 * @Date: 2022/05/04/8:41
 */
@Data
@AllArgsConstructor
@NoArgsConstructor
@ToString
@TableName("t_user")
/*用户表*/
public class User implements Serializable {
     @TableId(value = "id", type = IdType.INPUT)
     private Integer id;
     private String username; //用户名
     private String password; //密码
     private String salt;     //盐
     private String phone;    //手机号
     private String email;    //邮箱
     private String img;     //头像
     private String createTime; //注册时间
     private String locked;  //账号锁定
     @TableField(exist = false)
     List<Role> roles;
}
